<?php
if ($_POST['userNameAdmin'] != '') {
    $klien = Controllerm_user::searchm_user("where user_name = '".$_POST['userNameAdmin']."' and user_password = '".$_POST['passwordAdmin']."'");
    if ($klien->getRecordCount() > 0) {
        $_SESSION['userNameAdmin'] = 'user';
    } else {
        echo "<script>javascript:alert('User name dan password belum terdaftar.');</script>";
    }
}
?>
